﻿using System;
using System.Collections.ObjectModel;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;

namespace Acme.BookStore2
{
    /// <summary>
    /// 工作排程
    /// </summary>
    public class WorkSchedule : FullAuditedAggregateRoot<Guid>, IMultiTenant
    {
        /// <summary>
        /// 排班标题
        /// </summary>
        public virtual string Title { get; set; }
        /// <summary>
        /// 排班描述
        /// </summary>
        public virtual string Description { get; set; }
        /// <summary>
        /// 排班类型
        /// </summary>
        public virtual string WorkType { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public virtual string Remark { get; set; }
        /// <summary> 
        /// 排班项目
        /// </summary>
        public virtual Collection<WorkScheduleItem> WorkScheduleItems { get; set; }
        public Guid? TenantId { get; }

        protected WorkSchedule()
        {
        }

        public WorkSchedule(Guid id, Guid? tenantId = null) : base(id)
        {
            WorkScheduleItems = new Collection<WorkScheduleItem>();
            TenantId = tenantId;
        }
    }
}